﻿using System.Runtime.InteropServices;
using EnvDTE;
using GammaJul.ReSharper.GammaXaml.Caliburn;
using JetBrains.ProjectModel;
using JetBrains.VsIntegration.ProjectModel;
using JetBrains.VsIntegration.ProjectModel.PropertiesExtender;

[assembly: VSRegisterObject(typeof(GammaXamlPropertiesExtenderProvider))]
[assembly: VSRegisterExtender(GammaXamlPropertiesExtenderProvider.ExtenderName, GammaXamlPropertiesExtenderProvider.CSharpProject, GammaXamlPropertiesExtenderProvider.Guid)]
[assembly: VSRegisterExtender(GammaXamlPropertiesExtenderProvider.ExtenderName, GammaXamlPropertiesExtenderProvider.VBProject, GammaXamlPropertiesExtenderProvider.Guid)]

namespace GammaJul.ReSharper.GammaXaml.Caliburn {

	[Guid(Guid)]
	[ComVisible(true)]
	public class GammaXamlPropertiesExtenderProvider : ProjectPropertiesExtenderProviderBase {

		public const string Guid = "0CFF949F-772E-4855-B3CE-49CF26634271";
		public const string ExtenderName = "GammaXamlProjectProperties";

		public const string CSharpProject = "{4EF9F003-DE95-4d60-96B0-212979F2A857}";
		public const string VBProject = "{E0FDC879-C32A-4751-A3D3-0B3824BD575F}";
		
		protected override ProjectPropertiesExtenderBase CreateExtender(IExtenderSite extenderSite, int cookie, IProject project) {
			return new GammaXamlPropertiesExtender(project, extenderSite, cookie);
		}

	}

}